* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 整体网页容器 */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #222;
}

body {
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 电脑屏幕边框 */
.computer-frame {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #222;
    padding: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 屏幕顶部栏 */
.computer-top-bar {
    height: 30px;
    background: #333;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #444;
}

/* 浏览器按钮 */
.browser-buttons {
    display: flex;
    align-items: center;
}

.browser-button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
}

.close-button {
    background-color: #FF5F56;
}

.minimize-button {
    background-color: #FFBD2E;
}

.maximize-button {
    background-color: #27C93F;
}

/* 浏览器地址栏 */
.browser-address-bar {
    flex: 1;
    height: 20px;
    background: #444;
    border-radius: 5px;
    margin: 0 15px;
    padding: 0 10px;
    color: #ddd;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.browser-address-bar i {
    margin-right: 8px;
    color: #27C93F;
}

/* 电脑屏幕内容区 */
.computer-screen {
    flex: 1;
    background: linear-gradient(45deg, #2c3e50, #3498db, #2c3e50);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    border-radius: 0 0 10px 10px;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-left: 1px solid #444;
    border-right: 1px solid #444;
    border-bottom: 1px solid #444;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 设备边框样式 */
.device-frame {
    position: relative;
    width: 420px;
    height: 800px;
    background: linear-gradient(45deg, #222, #444);
    border-radius: 40px;
    padding: 40px 20px 60px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #555;
}

/* 手机顶部摄像头和扬声器 */
.device-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    width: 140px;
    height: 25px;
    background: #0a0a0a;
    border-radius: 15px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 0 5px rgba(255,255,255,0.2);
}

/* 摄像头 */
.device-frame::after {
    content: '';
    position: absolute;
    top: 17px;
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    left: 50%;
    transform: translateX(30px);
    border: 1px solid #555;
    box-shadow: inset 0 0 2px rgba(255,255,255,0.5);
}

/* 手机底部Home键 */
.device-button.home-button {
    position: absolute;
    bottom: 10px;
    width: 40px;
    height: 40px;
    border: 2px solid #666;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.1);
}

/* 电源和音量按钮 */
.device-button {
    position: absolute;
    width: 4px;
    height: 30px;
    background: #333;
    right: -2px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    box-shadow: 
        -1px 0 2px rgba(0,0,0,0.5),
        inset 0 0 1px rgba(255,255,255,0.2);
}

.button-power {
    top: 100px;
    height: 40px;
}

.button-volume-up {
    top: 160px;
    height: 50px;
}

.button-volume-down {
    top: 220px;
    height: 50px;
}

/* 左侧按钮 */
.button-left {
    position: absolute;
    width: 4px;
    height: 25px;
    background: #333;
    left: -2px;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
    top: 120px;
    box-shadow: 
        1px 0 2px rgba(0,0,0,0.5),
        inset 0 0 1px rgba(255,255,255,0.2);
}

#game-container {
    width: 360px;
    height: 640px;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    border: 2px solid #111;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#game-start, #game-over {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9));
    color: white;
    z-index: 10;
    padding: 20px;
    text-align: center;
}

#game-start h1, #game-over h1 {
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #FFD700;
}

#game-start p, #game-over p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #FFF;
}

.game-instructions {
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    max-width: 90%;
}

.game-instructions p {
    margin: 10px 0;
    font-size: 1em;
}

.game-instructions i {
    margin: 0 5px;
    color: #FFD700;
}

#game-stats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 5;
    font-size: 1em;
    border-bottom: 2px solid #FFD700;
}

#game-stats div {
    display: flex;
    align-items: center;
}

#game-stats i {
    color: #FFD700;
    margin-right: 5px;
}

#health, #bullets, #score {
    color: #FFD700;
    font-weight: bold;
    margin-left: 5px;
}

button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1.2em;
    background-color: #FF6B6B;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

button:hover {
    background-color: #FF8E8E;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

button i {
    margin-right: 8px;
}

.hidden {
    display: none !important;
}

#game-canvas {
    width: 100%;
    height: 100%;
}

/* 设备屏幕亮光效果 */
.device-glare {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(130deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 40%);
    border-radius: 8px;
    pointer-events: none;
    z-index: 20;
}

/* 状态栏 */
.device-status-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25px;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 12px;
    color: white;
    z-index: 6;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
}

.status-time {
    font-weight: bold;
}

.status-icons i {
    margin-left: 8px;
}

/* 设备阴影投射效果 */
.device-shadow {
    position: absolute;
    width: 380px;
    height: 30px;
    background: rgba(0, 0, 0, 0.2);
    bottom: -40px;
    border-radius: 50%;
    filter: blur(15px);
    z-index: -1;
}

/* 电脑屏幕反光效果 */
.computer-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    border-radius: 0 0 10px 10px;
}

@media (max-height: 900px) {
    .device-frame {
        transform: scale(0.9);
        margin: 20px 0;
    }
}

@media (max-height: 800px) {
    .device-frame {
        transform: scale(0.8);
    }
    
    #game-container {
        height: 640px;
        width: 360px;
    }
}

@media (max-width: 450px) {
    .device-frame {
        transform: scale(0.8);
    }
}

/* 桌面和显示器底座 */
.desk {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, #444, #333);
    z-index: -1;
}

.monitor-stand {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 60px;
    background: linear-gradient(to bottom, #333, #222);
    border-radius: 5px 5px 0 0;
    z-index: -1;
}

.monitor-base {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 15px;
    background: linear-gradient(to bottom, #444, #222);
    border-radius: 5px 5px 0 0;
    z-index: -1;
} 